OneTeamSoftware\WooCommerce\Shipping\Adapter\EasyPost D

Total Complexity 235
Dependencies 0
Dependents 0
Total lines 1,876
Lines of code 1,547
Logical lines of code 493
Comment lines 15
Methods 52
Properties 6

Methods 52

Method Rating Maintainability Complexity Lines of code
getResponse()
D
20
68 174
initServices()
D
11
1 559
getCreateParams()
C
31 30 97
prepareParcelInfo()
A
43 15 46
prepareAddress()
A
45 13 45
setShipmentCacheValues()
A
45 10 42
prepareCustomsItem()
S
50 7 26
initPackageTypes()
S
33 1 106
initCarriers()
S
36 1 92
parseShipmentId()
S
57 6 16
getBuyParams()
S
58 6 15
prepareCustomsInfo()
S
58 6 14
setValidationErrors()
S
59 5 14
validate()
S
57 4 16
getRequestParams()
S
62 5 10
prepareCustomsItems()
S
60 4 14
getErrorMessage()
S
63 4 12
create()
S
56 3 17
__construct()
S
47 1 36
canBuy()
S
70 3 6
validateActiveApiToken()
S
67 3 7
buy()
S
61 2 11
getIntegrationFormFields()
S
54 1 22
getLabelSizeFormFields()
S
56 1 20
get()
S
62 2 10
deleteShipmentIdCache()
S
67 2 8
getServiceName()
S
68 2 7
addHeadersAndParams()
S
77 2 3
getCachedParcelInfo()
S
63 2 10
getCachedCustomsInfo()
S
63 2 10
getCachedAddress()
S
63 2 10
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServiceId()
S
80 1 3
getServices()
S
82 1 3
getRouteUrl()
S
70 1 6
hasUseSellerAddressFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
hasLinkFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasAddressValidationFeature()
S
82 1 3
delete()
S
73 1 5
hasCreateShipmentFeature()
S
82 1 3
hasMediaMailFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
getRates()
S
80 1 3
getShipmentIdCacheKey()
S
72 1 5
getName()
S
82 1 3
updateFormFields()
S
72 1 5
hasInsuranceFeature()
S
82 1 3